// part1:C14:ex14.44.cpp
// a calculator to oprate two value.
#include <functional>
#include <iostream>
#include <map>
#include <algorithm>
using namespace std;

map<string, function<int (int, int)>> binOps = {
    {"+", plus<int>()},
    {"-", minus<int>()},
    {"*", multiplies<int>()},
    {"/", divides<int>()},
    {"%", modulus<int>()}
};

int main(void)
{
    int left, right;
    string op;
    cin >> left >> op >> right;
    cout << binOps[op](left, right) << endl;
    return 0;
}